package com.tengju.settlement.domain.model.depository;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum AccountStatus {

    NORMAL(1,"正常"),
    LOGICAL_CANCEL(2,"逻辑销户"),
    CARD_NOT_BIND(3,"开户未绑卡"),
    CARD_BINDING(4,"开户绑卡中"),
    ;

    Integer val;
    String desc;


    public static AccountStatus fromVal(Integer val) {
        for (AccountStatus status : values()) {
            if (status.val.equals(val)) {
                return status;
            }
        }
        return null;
    }

}
